﻿using Audit.EntityFramework;
using System.ComponentModel.DataAnnotations.Schema;

namespace AntDesignProCore.MVC.Models
{
  //[AuditIgnore]
  [Table("t_ad_ipmove_configs")]
  public class AdIpmoveConfig
  {
    [Column("id")]
    public int Id { get; set; }

    [Column("product_id")]
    public int ProductId { get; set; }

    [Column("area_filter_id")]
    public int AreaFilterId { get; set; }

    [Column("ipmove")]
    public int IpMove { get; set; }

    [Column("config")]
    public string? Config { get; set; }

    [Column("create_date")]
    public DateTime CreateDate { get; set; }

    [Column("update_date")]
    public DateTime UpdateDate { get; set; }

    [ForeignKey("ProductId")]
    public Product Product { get; set; }

    [ForeignKey("AreaFilterId")]
    public AreaFilter AreaFilter { get; set; }
  }
}
